#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
4、求斐波那契数列 1 1 2 3 5 8 13 ……
'''

class Feibo(object):
    def __init__(self, num):
        self.num = num

    def naqie(self):
        a = [0, 1]
        for b in range(self.num):
            if b ==a[len(a) - 2] + a[len(a) - 1] and b != 0:
                a.append(b)
        print(a)



if __name__ == '__main__':
    result = Feibo(100)
    result.naqie()


